﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HelloLLLLL.Blog.DAL;

namespace HelloLLLLL.Blog.Admin.page
{
    public partial class WelCome : System.Web.UI.Page
    {
        public int TotoalArticle = 0;
        public int TotoalMessage = 0;
        DBHelper helper = new DBHelper();
        protected void Page_Load(object sender, EventArgs e)
        {
            TotoalArticle = Convert.ToInt32(helper.GetScalar("select count(1) from LLArticle", null));
            TotoalMessage = Convert.ToInt32(helper.GetScalar("select count(1) from LeaveMessage", null));
        }
    }
}